/*
 * AbstractGenericBusinessDelegate.java
 *
 * Created on 19 de Junho de 2007, 13:11
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package br.com.esp.agendafinanceira.delegate.impl;

import br.com.esp.agendafinanceira.delegate.GenericBusinessDelegate;
import br.com.esp.agendafinanceira.exception.I18NException;
import br.com.esp.agendafinanceira.locator.ServiceLocator;
import bsh.This;
import java.io.Serializable;

/**
 *
 * @author David
 */
public class AbstractGenericBusinessDelegate implements GenericBusinessDelegate {
    
    /**
     *
     */
    private ServiceLocator locator;
    
    /** Creates a new instance of AbstractGenericBusinessDelegate */
    public AbstractGenericBusinessDelegate() {
        super();
        if (locator == null) {
            locator = new ServiceLocator();
        }
    }

    public void salvar(Object object) throws I18NException {
        //TODO
    }

    public void deletar(Object object) throws I18NException {
        //TODO
    }

    public void remover(Object object) throws I18NException {
        //TODO
    }

    public Object findById(Serializable id, Class objClazz) throws I18NException {
        return null;
    }
    
    public ServiceLocator getServiceLocator() {
        return this.locator;
    }
}
